package org.elsfs.cloud.module.ai.biz.controller;

import io.swagger.v3.oas.annotations.security.SecurityRequirement;
import io.swagger.v3.oas.annotations.tags.Tag;
import lombok.RequiredArgsConstructor;
import org.elsfs.cloud.common.controller.ControllerConfig;
import org.elsfs.cloud.common.controller.LogicRepositoryCrudController;
import org.elsfs.cloud.module.ai.api.entity.AiModelPlatform;
import org.elsfs.cloud.module.ai.biz.repository.AiModelPlatformRepository;
import org.springframework.http.HttpHeaders;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;


/**
 * 模型平台
 *
 * @author zeng
 */
@SecurityRequirement(name = HttpHeaders.AUTHORIZATION)
@RestController
@RequestMapping("/aiModelPlatform")
@RequiredArgsConstructor
@Tag(description = "dept", name = "模型平台管理")
public class AiModelPlatformController
  extends LogicRepositoryCrudController<
  AiModelPlatform, AiModelPlatform, AiModelPlatform, AiModelPlatform, AiModelPlatformRepository, String> {
  @Override
  protected ControllerConfig getConfig() {
    return super.getConfig().list(true);
  }
}
